<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>智联同城——小程序管理系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">

    <link rel="stylesheet" href="__PUBLIC__/layui/css/layui.css"  media="all">
    <style type="text/css">
        .layui-table{
            text-align: center;
        }
        .layui-table td, .layui-table th{
            text-align: center;
        }
    </style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header">
        <div class="layui-logo">智联同城</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="{:U('Index/index')}">首页</a></li>
            <li class="layui-nav-item"><a href="{:U('InfoCate/index')}">分类信息管理</a></li>
            <li class="layui-nav-item layui-this"><a href="{:U('ShopCate/index')}">好店管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Quan/index')}">同城圈管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Member/index')}">用户管理</a></li>
            <li class="layui-nav-item"><a href="{:U('Home/Index/index')}">切换小程序</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{$Think.session.wechat.headimg}" class="layui-nav-img">
                    {$Think.session.wechat.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:U('Home/Index/index')}">切换小程序</a></dd>
                    <!-- <dd><a href="">安全设置</a></dd> -->
                </dl>
            </li>
            <li class="layui-nav-item">
                <a href="javascript:;">
                    <img src="{$Think.session.headimgurl}" class="layui-nav-img">
                    {$Think.session.nickname}
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="{:U('Home/Public/logout')}">退出登录</a></dd>
                    <!-- <dd><a href="">安全设置</a></dd> -->
                </dl>
            </li>
        </ul>
    </div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree"  lay-filter="test">
                <li class="layui-nav-item"><a href="{:U('ShopCate/index')}">商家分类管理</a></li>
                <li class="layui-nav-item"><a href="{:U('Topic/index')}">专题管理</a></li>
                <li class="layui-nav-item"><a href="{:U('Shop/index')}">商家管理</a></li>
                <li class="layui-nav-item"><a href="{:U('Shop/renlingList')}">商家认领管理</a></li>
                <li class="layui-nav-item"><a href="{:U('Goods/index')}">商品管理</a></li>
                <li class="layui-nav-item"><a href="{:U('Coupon/index')}">优惠券管理</a></li>
                <li class="layui-nav-item"><a href="{:U('Order/index')}">订单管理</a></li>
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">协议声明管理</a>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('Shop/agreement')}">&nbsp;&nbsp;&nbsp;&nbsp;商家入驻协议</a></dd>
                        <dd class=""><a href="{:U('Shop/agreement_f')}">&nbsp;&nbsp;&nbsp;&nbsp;发布信息协议</a></dd>
                        <dd class=""><a href="{:U('Shop/agreement_t')}">&nbsp;&nbsp;&nbsp;&nbsp;开通同城卡协议</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed">
                    <a class="" href="javascript:;">店铺升级管理</a>
                    <dl class="layui-nav-child">
                        <dd class=""><a href="{:U('ShopCate/levelup')}">&nbsp;&nbsp;&nbsp;&nbsp;升级引导文章</a></dd>
                        <dd class=""><a href="{:U('ShopCate/audit')}">&nbsp;&nbsp;&nbsp;&nbsp;升级申请审核</a></dd>
                        <dd class="layui-this"><a href="{:U('ShopCate/money')}">&nbsp;&nbsp;&nbsp;&nbsp;升级价格管理</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding:0 15px;">
            <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
                <legend>升级引导文章管理</legend>
            </fieldset>
            <form class="layui-form" action="">
                <div class="layui-form-item"  >
                    <label class="layui-form-label">高级店铺价格(元)</label>
                    <div class="layui-input-block">
                        <input type="number" name="gao" lay-verify="title" autocomplete="off" placeholder="请输入价格" class="layui-input" value="{$list.gao}">
                    </div>
                </div>
                <div class="layui-form-item"  >
                    <label class="layui-form-label">汽车行业店铺价格(元)</label>
                    <div class="layui-input-block">
                        <input type="number" name="car" lay-verify="title" autocomplete="off" placeholder="请输入价格" class="layui-input" value="{$list.car}">
                    </div>
                </div>
                <div class="layui-form-item"  >
                    <label class="layui-form-label">教育行业店铺价格(元)</label>
                    <div class="layui-input-block">
                        <input type="number" name="jiaoyu" lay-verify="title" autocomplete="off" placeholder="请输入价格" class="layui-input" value="{$list.jiaoyu}">
                    </div>
                </div>
                <div class="layui-form-item"  >
                    <label class="layui-form-label">建材行业店铺价格(元)</label>
                    <div class="layui-input-block">
                        <input type="number" name="jiancai" lay-verify="title" autocomplete="off" placeholder="请输入价格" class="layui-input" value="{$list.jiancai}">
                    </div>
                </div>
                <div class="layui-form-item"  >
                    <label class="layui-form-label">餐饮行业店铺价格(元)</label>
                    <div class="layui-input-block">
                        <input type="number" name="takeout" lay-verify="title" autocomplete="off" placeholder="请输入价格" class="layui-input" value="{$list.takeout}">
                    </div>
                </div>
                <div class="layui-form-item"  >
                    <label class="layui-form-label">独立小程序(元)</label>
                    <div class="layui-input-block">
                        <input type="number" name="mini_program" lay-verify="title" autocomplete="off" placeholder="请输入价格" class="layui-input" value="{$list.mini_program}">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="*">立即提交</button>
                        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    </div>
                </div>
            </form>
            <div id="view"></div>
            <div id="page-box"></div>
        </div>
    </div>
</div>



    <div id="page-box"></div>
<script src="__PUBLIC__/js/jquery-1.11.1.min.js" charset="utf-8"></script>
<script src="__PUBLIC__/layui/layui.js" charset="utf-8"></script>
<script>

</script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    layui.use(['form','upload','element','laypage','layer'], function(){
        var form = layui.form
                ,layer = layui.layer
                ,$ = layui.jquery
                ,upload = layui.upload;

        form.on('select(test)', function(data){
            var val = data.value;
            if(val == 1){
                $('#you1').css('display','');
                $('#you2').css('display','none');
            }
            if(val ==2){
                $('#you1').css('display','none');
                $('#you2').css('display','');
            }
        });

        var uploadInst = upload.render({
            elem: '#test1'
            ,url: '{:U("Home/Public/upload")}'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                    $('#demo1').attr('src', result).show(); //图片链接（base64）
                });
            }
            ,done: function(res){
                //如果上传失败
                if(res.err_code > 0){
                    return layer.msg('上传失败');
                }else{
                    $("#imgurl").val("https://www.58zltc.com/Uploads/"+res.file_name);
                }
                //上传成功
            }
            ,error: function(){
                //演示失败状态，并实现重传
                var demoText = $('#demoText');
                demoText.html('<span style="color: #FF5722;">上传失败</span> <a class="layui-btn layui-btn-mini demo-reload">重试</a>');
                demoText.find('.demo-reload').on('click', function(){
                    uploadInst.upload();
                });
            }
        });
        //监听提交
        form.on('submit(*)', function(data){
            $.post('#', data.field, function(e) {
                layer.alert(e.info,function(index){
                    parent.location.reload();
                });
            });
            return false;
        });


    });
</script>

</body>
</html>